package pl.edu.agh.io.gpstracker.service;

import java.util.List;

import org.springframework.dao.DataAccessException;

import pl.edu.agh.io.gpstracker.client.dto.TrackDto;
import pl.edu.agh.io.gpstracker.client.dto.TracksequanceDto;

/**
 *
 * 
 * @author wkedzior
 * 
 */
public interface TrackService {

	void saveOrUpdateTrack(TrackDto trackDto) throws DataAccessException;

	List<TrackDto> findAllByUser(Integer userId) throws DataAccessException;

	void addWaySequenceToTrack(TracksequanceDto seq) throws DataAccessException;
	
	TracksequanceDto getLastPositionForTrack(Long trackId) throws DataAccessException;

}
